package com.submit.demo.repository;

import com.submit.demo.model.ColSub;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ColSubRepository extends MongoRepository<ColSub, String> {
    List<ColSub> findColSubsByCid(String cid);

    void deleteAllBySid(String sid);

    ColSub findColSubByCidAndSid(String cid, String sid);
}
